/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package camada.apresentacao.frames;

import camada.apresentacao.dialog.Sobre;
import camada.apresentacao.dialog.backup.internalFrmBackup;
import camada.apresentacao.dialog.banco.InternalFrmCadBanco;
import camada.apresentacao.dialog.veiculo.DialogCarro;
import camada.apresentacao.dialog.financeiro.cartaocredito.InternalFrmContaCartaoCredito;
import camada.apresentacao.dialog.cat52.InternalFrmImportacaoCat52;
import camada.apresentacao.dialog.cfop.InternalFrmCFOP;
import camada.apresentacao.dialog.pessoafisica.InternalFrmPessoaFisica;
import camada.apresentacao.dialog.contabancaria.InternalFrmCadContaBancaria;
import camada.apresentacao.dialog.empresa.InternalFrmCadEmpresa;
import camada.apresentacao.dialog.material.InternalFrmCadMateriaPrima;
import camada.apresentacao.dialog.notafiscal.InternalFrmNotaFiscalSaida;
import camada.apresentacao.dialog.notafiscal.status.internalFrmStatusServicoNFe;
import camada.apresentacao.dialog.pessoajuridica.InternalFrmPessoaJuridica;
import camada.apresentacao.dialog.servico.DialogServico;
import camada.apresentacao.dialog.servico.orcamento.DialogServicoOrcamento;
import camada.apresentacao.dialog.usuario.InternalFrmCadUsuario;
import camada.apresentacao.financeiro.cheque.InternalFrmRecebimentoCheque;
import camada.apresentacao.financeiro.financiamento.InternalFrmContaLicenciamento;
import camada.bancodedados.conexao.Conexao;
import java.awt.Desktop;
import java.awt.Image;
import java.awt.Toolkit;
import java.io.File;
import java.util.logging.Level;
import javax.swing.JOptionPane;
import javax.swing.plaf.basic.BasicInternalFrameUI;
import org.jdesktop.swingx.error.ErrorInfo;
import relatorio.cartaocredito.DialogFiltroRelatorioLancamentoCartaoCredito;
import relatorio.cliente.ReportCliente;
import utilitarios.erros.MessagemErro;

/**
 *
 * @author KLINGER
 */
public class FrameDesckTop extends javax.swing.JFrame {

    /**
     * Creates new form FrameDesckTop
     */
    public FrameDesckTop() {
        initComponents();

        Image im = Toolkit.getDefaultToolkit().getImage("./src/ima/sistema/Icone_Sistema.png");
        this.setTitle("Sistema de Gestão Empresarial");
        this.setIconImage(im);
        this.setExtendedState(this.MAXIMIZED_BOTH);

//        try {
//            UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
//        } catch (Exception e) {
//            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null),1);
//        }
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jDesktopPane1 = new javax.swing.JDesktopPane();
        jMenuItem22 = new javax.swing.JMenuItem();
        jMenuItem23 = new javax.swing.JMenuItem();
        desktopPane = new javax.swing.JDesktopPane();
        jXTaskPaneContainer1 = new org.jdesktop.swingx.JXTaskPaneContainer();
        jXHyperlink2 = new org.jdesktop.swingx.JXHyperlink();
        jMenuBar1 = new javax.swing.JMenuBar();
        menuArquivo = new javax.swing.JMenu();
        menuBancoDeDados = new javax.swing.JMenu();
        menuBancoDeDadosItemBackup = new javax.swing.JMenuItem();
        menuItemCalculadora = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        menuParametrosSistema = new javax.swing.JMenu();
        menuParametrosSistemaItemEmpresa = new javax.swing.JMenuItem();
        menuParametrosSistemaItemUsuario = new javax.swing.JMenuItem();
        menuFiscal = new javax.swing.JMenu();
        menuFiscalItemCfop = new javax.swing.JMenuItem();
        jSeparator3 = new javax.swing.JPopupMenu.Separator();
        menuItemSair = new javax.swing.JMenuItem();
        menuCadastro = new javax.swing.JMenu();
        jMenu20 = new javax.swing.JMenu();
        menuCadCliente = new javax.swing.JMenuItem();
        menuCadFornecedor = new javax.swing.JMenuItem();
        menuCadFuncionario = new javax.swing.JMenuItem();
        menuCadVeiculo = new javax.swing.JMenuItem();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem5 = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        jMenu8 = new javax.swing.JMenu();
        jMenuItem11 = new javax.swing.JMenuItem();
        jMenuItem25 = new javax.swing.JMenuItem();
        jMenu14 = new javax.swing.JMenu();
        jMenuItem12 = new javax.swing.JMenuItem();
        jMenuItem27 = new javax.swing.JMenuItem();
        jMenu16 = new javax.swing.JMenu();
        jMenuItem28 = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        jMenu18 = new javax.swing.JMenu();
        jMenuItem29 = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        jMenu17 = new javax.swing.JMenu();
        jMenu10 = new javax.swing.JMenu();
        jMenuItem20 = new javax.swing.JMenuItem();
        jMenuItem21 = new javax.swing.JMenuItem();
        jMenu11 = new javax.swing.JMenu();
        jMenuItem10 = new javax.swing.JMenuItem();
        jMenu19 = new javax.swing.JMenu();
        jMenuItem30 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenuItem18 = new javax.swing.JMenuItem();
        jMenu9 = new javax.swing.JMenu();
        jMenuItem17 = new javax.swing.JMenuItem();
        jMenuItem7 = new javax.swing.JMenuItem();
        jMenu5 = new javax.swing.JMenu();
        jMenuItem14 = new javax.swing.JMenuItem();
        jMenuItem16 = new javax.swing.JMenuItem();
        jMenu6 = new javax.swing.JMenu();
        menuServicoAvaliacao = new javax.swing.JMenuItem();
        jMenu15 = new javax.swing.JMenu();
        jMenuItem26 = new javax.swing.JMenuItem();
        jMenu22 = new javax.swing.JMenu();
        jMenu23 = new javax.swing.JMenu();
        jMenuItem8 = new javax.swing.JMenuItem();
        jMenu24 = new javax.swing.JMenu();
        menuAjuda = new javax.swing.JMenu();
        menuItemSobre = new javax.swing.JMenuItem();
        menuManuais = new javax.swing.JMenu();
        menuManuaisFiscais = new javax.swing.JMenu();
        jMenuItem13 = new javax.swing.JMenuItem();
        jMenuItem15 = new javax.swing.JMenuItem();
        jMenuItem24 = new javax.swing.JMenuItem();
        jMenuItem32 = new javax.swing.JMenuItem();
        jMenuItem33 = new javax.swing.JMenuItem();

        jMenuItem22.setText("jMenuItem22");

        jMenuItem23.setText("jMenuItem23");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        desktopPane.setBackground(new java.awt.Color(240, 240, 240));
        desktopPane.setAutoscrolls(true);
        desktopPane.add(jXTaskPaneContainer1);
        jXTaskPaneContainer1.setBounds(-220, 10, 20, 10);

        jXHyperlink2.setText("jXHyperlink2");
        desktopPane.add(jXHyperlink2);
        jXHyperlink2.setBounds(-130, 110, 60, 14);

        jMenuBar1.setBackground(new java.awt.Color(204, 204, 204));
        jMenuBar1.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N
        jMenuBar1.setPreferredSize(new java.awt.Dimension(825, 25));

        menuArquivo.setText("Início");
        menuArquivo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuArquivoActionPerformed(evt);
            }
        });

        menuBancoDeDados.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/BancoDeDados.png"))); // NOI18N
        menuBancoDeDados.setText("Banco de dados");

        menuBancoDeDadosItemBackup.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        menuBancoDeDadosItemBackup.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/Editar_Banco.png"))); // NOI18N
        menuBancoDeDadosItemBackup.setText("Backup");
        menuBancoDeDadosItemBackup.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuBancoDeDadosItemBackupActionPerformed(evt);
            }
        });
        menuBancoDeDados.add(menuBancoDeDadosItemBackup);

        menuArquivo.add(menuBancoDeDados);

        menuItemCalculadora.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        menuItemCalculadora.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/Calculadora.png"))); // NOI18N
        menuItemCalculadora.setText("Calculadora");
        menuItemCalculadora.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuItemCalculadoraActionPerformed(evt);
            }
        });
        menuArquivo.add(menuItemCalculadora);
        menuArquivo.add(jSeparator2);

        menuParametrosSistema.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        menuParametrosSistema.setText("Parametros Sistema");

        menuParametrosSistemaItemEmpresa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        menuParametrosSistemaItemEmpresa.setText("Empresa");
        menuParametrosSistemaItemEmpresa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuParametrosSistemaItemEmpresaActionPerformed(evt);
            }
        });
        menuParametrosSistema.add(menuParametrosSistemaItemEmpresa);

        menuParametrosSistemaItemUsuario.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        menuParametrosSistemaItemUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Outros/Cliente Quinto.png"))); // NOI18N
        menuParametrosSistemaItemUsuario.setText("Usuários");
        menuParametrosSistemaItemUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuParametrosSistemaItemUsuarioActionPerformed(evt);
            }
        });
        menuParametrosSistema.add(menuParametrosSistemaItemUsuario);

        menuFiscal.setText("Fiscais");

        menuFiscalItemCfop.setText("CFOP");
        menuFiscalItemCfop.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuFiscalItemCfopActionPerformed(evt);
            }
        });
        menuFiscal.add(menuFiscalItemCfop);

        menuParametrosSistema.add(menuFiscal);

        menuArquivo.add(menuParametrosSistema);
        menuArquivo.add(jSeparator3);

        menuItemSair.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));
        menuItemSair.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/Exit.png"))); // NOI18N
        menuItemSair.setText("Sair");
        menuItemSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuItemSairActionPerformed(evt);
            }
        });
        menuArquivo.add(menuItemSair);

        jMenuBar1.add(menuArquivo);

        menuCadastro.setText("Cadastros");
        menuCadastro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuCadastroActionPerformed(evt);
            }
        });

        jMenu20.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenu20.setText("Entidades");

        menuCadCliente.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_MASK));
        menuCadCliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Outros/Cliente Dois.png"))); // NOI18N
        menuCadCliente.setText("Pessoa Fisica");
        menuCadCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuCadClienteActionPerformed(evt);
            }
        });
        jMenu20.add(menuCadCliente);

        menuCadFornecedor.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.ALT_MASK));
        menuCadFornecedor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/Caminhão.png"))); // NOI18N
        menuCadFornecedor.setText("Pessoa Juridica");
        menuCadFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuCadFornecedorActionPerformed(evt);
            }
        });
        jMenu20.add(menuCadFornecedor);

        menuCadFuncionario.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.ALT_MASK));
        menuCadFuncionario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/Capacete.png"))); // NOI18N
        menuCadFuncionario.setText("Funcionários");
        jMenu20.add(menuCadFuncionario);

        menuCadastro.add(jMenu20);

        menuCadVeiculo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.ALT_MASK));
        menuCadVeiculo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/Carro.png"))); // NOI18N
        menuCadVeiculo.setText("Veículo");
        menuCadVeiculo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuCadVeiculoActionPerformed(evt);
            }
        });
        menuCadastro.add(menuCadVeiculo);

        jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.ALT_MASK));
        jMenuItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/Material.png"))); // NOI18N
        jMenuItem1.setText("Materia Prima");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        menuCadastro.add(jMenuItem1);

        jMenuItem5.setText("Produtos");
        jMenuItem5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem5ActionPerformed(evt);
            }
        });
        menuCadastro.add(jMenuItem5);

        jMenuBar1.add(menuCadastro);

        jMenu1.setText("Financeiro");

        jMenu8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenu8.setText("Cadastros");

        jMenuItem11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/Banco.png"))); // NOI18N
        jMenuItem11.setText("Bancos");
        jMenuItem11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem11ActionPerformed(evt);
            }
        });
        jMenu8.add(jMenuItem11);

        jMenuItem25.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenuItem25.setText("Contas Bancarias");
        jMenuItem25.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem25ActionPerformed(evt);
            }
        });
        jMenu8.add(jMenuItem25);

        jMenu1.add(jMenu8);

        jMenu14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenu14.setText("Lançamentos");

        jMenuItem12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenuItem12.setText("Cartão Crédito");
        jMenuItem12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem12ActionPerformed(evt);
            }
        });
        jMenu14.add(jMenuItem12);

        jMenuItem27.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenuItem27.setText("Financiamentos");
        jMenuItem27.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem27ActionPerformed(evt);
            }
        });
        jMenu14.add(jMenuItem27);

        jMenu16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenu16.setText("Cheques");

        jMenuItem28.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenuItem28.setText("Recebimento");
        jMenuItem28.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem28ActionPerformed(evt);
            }
        });
        jMenu16.add(jMenuItem28);

        jMenu14.add(jMenu16);

        jMenu1.add(jMenu14);

        jMenuBar1.add(jMenu1);

        jMenu4.setText("Venda");

        jMenu18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenu18.setText("Importação");

        jMenuItem29.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenuItem29.setText("Importação ECF (Cat52)");
        jMenuItem29.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem29ActionPerformed(evt);
            }
        });
        jMenu18.add(jMenuItem29);

        jMenu4.add(jMenu18);
        jMenu4.add(jSeparator1);

        jMenuBar1.add(jMenu4);

        jMenu17.setText("Fiscal");

        jMenu10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenu10.setText("Notas Fiscais");

        jMenuItem20.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenuItem20.setText("Emissão Notas Fiscais");
        jMenuItem20.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem20ActionPerformed(evt);
            }
        });
        jMenu10.add(jMenuItem20);

        jMenuItem21.setText("jMenuItem21");
        jMenuItem21.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem21ActionPerformed(evt);
            }
        });
        jMenu10.add(jMenuItem21);

        jMenu17.add(jMenu10);

        jMenu11.setText("ECF (2, 2D)");

        jMenuItem10.setText("Redução Z");
        jMenuItem10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem10ActionPerformed(evt);
            }
        });
        jMenu11.add(jMenuItem10);

        jMenu17.add(jMenu11);

        jMenu19.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenu19.setText("Obrigações");

        jMenuItem30.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenuItem30.setText("Envio Nota Fiscal Paulista");
        jMenu19.add(jMenuItem30);

        jMenu17.add(jMenu19);

        jMenuBar1.add(jMenu17);

        jMenu2.setText("Estoque");

        jMenuItem2.setText("Entrada Material");
        jMenu2.add(jMenuItem2);

        jMenuItem3.setText("Saída Material");
        jMenu2.add(jMenuItem3);

        jMenuItem18.setText("Pedidos");
        jMenu2.add(jMenuItem18);

        jMenuBar1.add(jMenu2);

        jMenu9.setText("Serviços/Orçamentos");

        jMenuItem17.setText("Serviços");
        jMenuItem17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem17ActionPerformed(evt);
            }
        });
        jMenu9.add(jMenuItem17);

        jMenuItem7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenuItem7.setText("Orçamentos");
        jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem7ActionPerformed1(evt);
            }
        });
        jMenu9.add(jMenuItem7);

        jMenuBar1.add(jMenu9);

        jMenu5.setText("Relatórios");

        jMenuItem14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Relatorio/Report Tres.png"))); // NOI18N
        jMenuItem14.setText("Relatório de Cheques");
        jMenuItem14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem14ActionPerformed(evt);
            }
        });
        jMenu5.add(jMenuItem14);

        jMenuItem16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Relatorio/Report Quatro.png"))); // NOI18N
        jMenuItem16.setText("Lista Telefonica Clientes");
        jMenuItem16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem16ActionPerformed(evt);
            }
        });
        jMenu5.add(jMenuItem16);

        jMenu6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenu6.setText("Serviço");

        menuServicoAvaliacao.setText("Avaliação");
        menuServicoAvaliacao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuServicoAvaliacaoActionPerformed(evt);
            }
        });
        jMenu6.add(menuServicoAvaliacao);

        jMenu5.add(jMenu6);

        jMenu15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ima/frmprincipal/TransParente.png"))); // NOI18N
        jMenu15.setText("Financeiro");

        jMenuItem26.setText("jMenuItem26");
        jMenuItem26.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem26ActionPerformed(evt);
            }
        });
        jMenu15.add(jMenuItem26);

        jMenu5.add(jMenu15);

        jMenuBar1.add(jMenu5);

        jMenu22.setText("Serviços Online");

        jMenu23.setText("Consultas Notas Fiscais");

        jMenuItem8.setText("Status Nota Fiscal");
        jMenu23.add(jMenuItem8);

        jMenu22.add(jMenu23);

        jMenu24.setText("Receita Federal");
        jMenu22.add(jMenu24);

        jMenuBar1.add(jMenu22);

        menuAjuda.setText("Ajuda");

        menuItemSobre.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK));
        menuItemSobre.setText("Sobre");
        menuItemSobre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuItemSobreActionPerformed(evt);
            }
        });
        menuAjuda.add(menuItemSobre);

        menuManuais.setText("Manuais");

        menuManuaisFiscais.setText("Fiscais");

        jMenuItem13.setText("DIC Sergipe");
        jMenuItem13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem13ActionPerformed(evt);
            }
        });
        menuManuaisFiscais.add(jMenuItem13);

        jMenuItem15.setText("GIA 8");
        jMenuItem15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem15ActionPerformed(evt);
            }
        });
        menuManuaisFiscais.add(jMenuItem15);

        jMenuItem24.setText("SEF II ");
        jMenuItem24.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem24ActionPerformed(evt);
            }
        });
        menuManuaisFiscais.add(jMenuItem24);

        jMenuItem32.setText("SPED Fiscal");
        jMenuItem32.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem32ActionPerformed(evt);
            }
        });
        menuManuaisFiscais.add(jMenuItem32);

        jMenuItem33.setText("SPED Contribuições");
        jMenuItem33.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem33ActionPerformed(evt);
            }
        });
        menuManuaisFiscais.add(jMenuItem33);

        menuManuais.add(menuManuaisFiscais);

        menuAjuda.add(menuManuais);

        jMenuBar1.add(menuAjuda);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(desktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, 1271, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(desktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, 583, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void menuBancoDeDadosItemBackupActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuBancoDeDadosItemBackupActionPerformed
        try {

            internalFrmBackup interBackup = new internalFrmBackup();
            ((BasicInternalFrameUI) interBackup.getUI()).setNorthPane(null);
            interBackup.setBorder(null);

            desktopPane.add(interBackup);
            interBackup.setVisible(true);
            interBackup.setMaximum(true);

        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_menuBancoDeDadosItemBackupActionPerformed

    private void menuItemCalculadoraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuItemCalculadoraActionPerformed
        try {
            Runtime.getRuntime().exec("calc");
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_menuItemCalculadoraActionPerformed

    private void menuParametrosSistemaItemEmpresaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuParametrosSistemaItemEmpresaActionPerformed
        try {
            InternalFrmCadEmpresa inter = new InternalFrmCadEmpresa();
            ((BasicInternalFrameUI) inter.getUI()).setNorthPane(null); //retirar o painel superior  
            inter.setBorder(null);
            desktopPane.add(inter);
            inter.setVisible(true);
            inter.setMaximum(true);
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_menuParametrosSistemaItemEmpresaActionPerformed

    private void menuItemSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuItemSairActionPerformed
        try {

            Object[] options = {"Confirmar", "Cancelar"};

            int i = JOptionPane.showOptionDialog(null,
                    "Você tem certeza que deseja sair?", "Sair do sistema",
                    JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null,
                    options, options[0]);

            if (i == JOptionPane.YES_OPTION) {
                Conexao.encerrar();
                System.exit(0);
            }

        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }

    }//GEN-LAST:event_menuItemSairActionPerformed

    private void menuArquivoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuArquivoActionPerformed
    }//GEN-LAST:event_menuArquivoActionPerformed

    private void menuCadClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuCadClienteActionPerformed
        try {
            InternalFrmPessoaFisica interCliente = new InternalFrmPessoaFisica();
            ((BasicInternalFrameUI) interCliente.getUI()).setNorthPane(null); //retirar o painel superior  
            interCliente.setBorder(null);
            desktopPane.add(interCliente);
            interCliente.setVisible(true);
            interCliente.setMaximum(true);
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_menuCadClienteActionPerformed

    private void menuCadFornecedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuCadFornecedorActionPerformed
        try {
            InternalFrmPessoaJuridica inter = new InternalFrmPessoaJuridica();
            ((BasicInternalFrameUI) inter.getUI()).setNorthPane(null); //retirar o painel superior  
            inter.setBorder(null);
            desktopPane.add(inter);
            inter.setVisible(true);
            inter.setMaximum(true);
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_menuCadFornecedorActionPerformed

    private void menuCadVeiculoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuCadVeiculoActionPerformed
        DialogCarro dialogCarro = new DialogCarro(this, true);
        dialogCarro.setVisible(true);
    }//GEN-LAST:event_menuCadVeiculoActionPerformed

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        try {
            InternalFrmCadMateriaPrima inter = new InternalFrmCadMateriaPrima();
            ((BasicInternalFrameUI) inter.getUI()).setNorthPane(null); //retirar o painel superior  
            inter.setBorder(null);
            desktopPane.add(inter);
            inter.setVisible(true);
            inter.setMaximum(true);
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void menuCadastroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuCadastroActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menuCadastroActionPerformed

    private void jMenuItem17ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem17ActionPerformed
        DialogServico servico = new DialogServico(this, true, 8);
        servico.setVisible(true);
    }//GEN-LAST:event_jMenuItem17ActionPerformed

    private void jMenuItem7ActionPerformed1(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem7ActionPerformed1
        //   DialogOrcamentos orcamentos = new DialogOrcamentos(this, true);
        //   orcamentos.setVisible(true);
        DialogServicoOrcamento orc = new DialogServicoOrcamento(this, true);
        orc.setVisible(true);
    }//GEN-LAST:event_jMenuItem7ActionPerformed1

    private void jMenuItem14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem14ActionPerformed

    }//GEN-LAST:event_jMenuItem14ActionPerformed

    private void jMenuItem16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem16ActionPerformed
        ReportCliente rpRelatorio = new ReportCliente();

    }//GEN-LAST:event_jMenuItem16ActionPerformed

    private void menuServicoAvaliacaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuServicoAvaliacaoActionPerformed

    }//GEN-LAST:event_menuServicoAvaliacaoActionPerformed

    private void menuParametrosSistemaItemUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuParametrosSistemaItemUsuarioActionPerformed
        try {
            InternalFrmCadUsuario inter = new InternalFrmCadUsuario();
            ((BasicInternalFrameUI) inter.getUI()).setNorthPane(null); //retirar o painel superior  
            inter.setBorder(null);
            desktopPane.add(inter);
            inter.setVisible(true);
            inter.setMaximum(true);
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_menuParametrosSistemaItemUsuarioActionPerformed

    private void menuItemSobreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuItemSobreActionPerformed
        Sobre so = new Sobre(this, true);
        so.show();
    }//GEN-LAST:event_menuItemSobreActionPerformed

    private void jMenuItem11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem11ActionPerformed
        try {
            InternalFrmCadBanco inter = new InternalFrmCadBanco();
            ((BasicInternalFrameUI) inter.getUI()).setNorthPane(null); //retirar o painel superior  
            inter.setBorder(null);
            desktopPane.add(inter);
            inter.setVisible(true);
            inter.setMaximum(true);
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_jMenuItem11ActionPerformed

    private void jMenuItem12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem12ActionPerformed
        try {
            InternalFrmContaCartaoCredito inter = new InternalFrmContaCartaoCredito();
            ((BasicInternalFrameUI) inter.getUI()).setNorthPane(null);
            inter.setBorder(null);
            desktopPane.add(inter);
            inter.setVisible(true);
            inter.setMaximum(true);
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_jMenuItem12ActionPerformed

    private void jMenuItem25ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem25ActionPerformed
        try {
            InternalFrmCadContaBancaria inter = new InternalFrmCadContaBancaria();
            ((BasicInternalFrameUI) inter.getUI()).setNorthPane(null); //retirar o painel superior  
            inter.setBorder(null);
            desktopPane.add(inter);
            inter.setVisible(true);
            inter.setMaximum(true);
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_jMenuItem25ActionPerformed

    private void jMenuItem26ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem26ActionPerformed
        DialogFiltroRelatorioLancamentoCartaoCredito dialog = new DialogFiltroRelatorioLancamentoCartaoCredito(this, true);
        dialog.setVisible(true);
    }//GEN-LAST:event_jMenuItem26ActionPerformed

    private void jMenuItem27ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem27ActionPerformed
        try {
            InternalFrmContaLicenciamento inter = new InternalFrmContaLicenciamento();
            ((BasicInternalFrameUI) inter.getUI()).setNorthPane(null); //retirar o painel superior  
            inter.setBorder(null);
            desktopPane.add(inter);
            inter.setVisible(true);
            inter.setMaximum(true);
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_jMenuItem27ActionPerformed

    private void jMenuItem28ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem28ActionPerformed
        try {
            InternalFrmRecebimentoCheque inter = new InternalFrmRecebimentoCheque();
            ((BasicInternalFrameUI) inter.getUI()).setNorthPane(null); //retirar o painel superior  
            inter.setBorder(null);
            desktopPane.add(inter);
            inter.setVisible(true);
            inter.setMaximum(true);
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_jMenuItem28ActionPerformed

    private void jMenuItem29ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem29ActionPerformed
        try {
            InternalFrmImportacaoCat52 inter = new InternalFrmImportacaoCat52();
            ((BasicInternalFrameUI) inter.getUI()).setNorthPane(null); //retirar o painel superior  
            inter.setBorder(null);
            desktopPane.add(inter);
            inter.setVisible(true);
            inter.setMaximum(true);
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }

    }//GEN-LAST:event_jMenuItem29ActionPerformed

    private void jMenuItem20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem20ActionPerformed
        try {
            InternalFrmNotaFiscalSaida inter = new InternalFrmNotaFiscalSaida();
            ((BasicInternalFrameUI) inter.getUI()).setNorthPane(null); //retirar o painel superior  
            inter.setBorder(null);
            desktopPane.add(inter);
            inter.setVisible(true);
            inter.setMaximum(true);
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_jMenuItem20ActionPerformed

    private void jMenuItem21ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem21ActionPerformed
        try {
            internalFrmStatusServicoNFe inter = new internalFrmStatusServicoNFe();
            ((BasicInternalFrameUI) inter.getUI()).setNorthPane(null); //retirar o painel superior  
            inter.setBorder(null);
            desktopPane.add(inter);
            inter.setVisible(true);
            inter.setMaximum(true);
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_jMenuItem21ActionPerformed

    private void menuFiscalItemCfopActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuFiscalItemCfopActionPerformed
        try {
            InternalFrmCFOP inter = new InternalFrmCFOP();
            ((BasicInternalFrameUI) inter.getUI()).setNorthPane(null); //retirar o painel superior  
            inter.setBorder(null);
            desktopPane.add(inter);
            inter.setVisible(true);
            inter.setMaximum(true);
        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_menuFiscalItemCfopActionPerformed

    private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem5ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem5ActionPerformed

    private void jMenuItem10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem10ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem10ActionPerformed

    private void jMenuItem13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem13ActionPerformed
        try {

            File a = new File("C:\\Seloma\\Manuais\\Fiscais\\DIC_SERGIPE.pdf");

            if (a.isFile() == true) {
                Desktop.getDesktop().open(a);
            } else {
                MessagemErro erro = new MessagemErro(new ErrorInfo("Falha no Sistema", "Arquivo não Encontrado", null, "Fatal", null, Level.WARNING, null), 1);
            }

        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_jMenuItem13ActionPerformed

    private void jMenuItem15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem15ActionPerformed
        try {

            File a = new File("C:\\Seloma\\Manuais\\Fiscais\\GIA8.pdf");

            if (a.isFile() == true) {
                Desktop.getDesktop().open(a);
            } else {
                MessagemErro erro = new MessagemErro(new ErrorInfo("Falha no Sistema", "Arquivo não Encontrado", null, "Fatal", null, Level.WARNING, null), 1);
            }

        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_jMenuItem15ActionPerformed

    private void jMenuItem24ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem24ActionPerformed
        try {

            File a = new File("C:\\Seloma\\Manuais\\Fiscais\\SEF_II.pdf");

            if (a.isFile() == true) {
                Desktop.getDesktop().open(a);
            } else {
                MessagemErro erro = new MessagemErro(new ErrorInfo("Falha no Sistema", "Arquivo não Encontrado", null, "Fatal", null, Level.WARNING, null), 1);
            }

        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_jMenuItem24ActionPerformed

    private void jMenuItem32ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem32ActionPerformed
        try {

            File a = new File("C:\\Seloma\\Manuais\\Fiscais\\SPED_FISCAL.pdf");

            if (a.isFile() == true) {
                Desktop.getDesktop().open(a);
            } else {
                MessagemErro erro = new MessagemErro(new ErrorInfo("Falha no Sistema", "Arquivo não Encontrado", null, "Fatal", null, Level.WARNING, null), 1);
            }

        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_jMenuItem32ActionPerformed

    private void jMenuItem33ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem33ActionPerformed
        try {

            File a = new File("C:\\Seloma\\Manuais\\Fiscais\\SPED_Contribuições.pdf");

            if (a.isFile() == true) {
                Desktop.getDesktop().open(a);
            } else {
                MessagemErro erro = new MessagemErro(new ErrorInfo("Falha no Sistema", "Arquivo não Encontrado", null, "Fatal", null, Level.WARNING, null), 1);
            }

        } catch (Exception e) {
            MessagemErro erro = new MessagemErro(new ErrorInfo("Erro no Sistema", "Não é Possível Continuar, Sistema Inativo", null, "Fatal", e, Level.WARNING, null), 1);
        }
    }//GEN-LAST:event_jMenuItem33ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FrameDesckTop.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FrameDesckTop.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FrameDesckTop.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FrameDesckTop.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FrameDesckTop().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JDesktopPane desktopPane;
    private javax.swing.JDesktopPane jDesktopPane1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu10;
    private javax.swing.JMenu jMenu11;
    private javax.swing.JMenu jMenu14;
    private javax.swing.JMenu jMenu15;
    private javax.swing.JMenu jMenu16;
    private javax.swing.JMenu jMenu17;
    private javax.swing.JMenu jMenu18;
    private javax.swing.JMenu jMenu19;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu20;
    private javax.swing.JMenu jMenu22;
    private javax.swing.JMenu jMenu23;
    private javax.swing.JMenu jMenu24;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenu jMenu6;
    private javax.swing.JMenu jMenu8;
    private javax.swing.JMenu jMenu9;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem10;
    private javax.swing.JMenuItem jMenuItem11;
    private javax.swing.JMenuItem jMenuItem12;
    private javax.swing.JMenuItem jMenuItem13;
    private javax.swing.JMenuItem jMenuItem14;
    private javax.swing.JMenuItem jMenuItem15;
    private javax.swing.JMenuItem jMenuItem16;
    private javax.swing.JMenuItem jMenuItem17;
    private javax.swing.JMenuItem jMenuItem18;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem20;
    private javax.swing.JMenuItem jMenuItem21;
    private javax.swing.JMenuItem jMenuItem22;
    private javax.swing.JMenuItem jMenuItem23;
    private javax.swing.JMenuItem jMenuItem24;
    private javax.swing.JMenuItem jMenuItem25;
    private javax.swing.JMenuItem jMenuItem26;
    private javax.swing.JMenuItem jMenuItem27;
    private javax.swing.JMenuItem jMenuItem28;
    private javax.swing.JMenuItem jMenuItem29;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem30;
    private javax.swing.JMenuItem jMenuItem32;
    private javax.swing.JMenuItem jMenuItem33;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JPopupMenu.Separator jSeparator3;
    private org.jdesktop.swingx.JXHyperlink jXHyperlink2;
    private org.jdesktop.swingx.JXTaskPaneContainer jXTaskPaneContainer1;
    private javax.swing.JMenu menuAjuda;
    private javax.swing.JMenu menuArquivo;
    private javax.swing.JMenu menuBancoDeDados;
    private javax.swing.JMenuItem menuBancoDeDadosItemBackup;
    private javax.swing.JMenuItem menuCadCliente;
    private javax.swing.JMenuItem menuCadFornecedor;
    private javax.swing.JMenuItem menuCadFuncionario;
    private javax.swing.JMenuItem menuCadVeiculo;
    private javax.swing.JMenu menuCadastro;
    private javax.swing.JMenu menuFiscal;
    private javax.swing.JMenuItem menuFiscalItemCfop;
    private javax.swing.JMenuItem menuItemCalculadora;
    private javax.swing.JMenuItem menuItemSair;
    private javax.swing.JMenuItem menuItemSobre;
    private javax.swing.JMenu menuManuais;
    private javax.swing.JMenu menuManuaisFiscais;
    private javax.swing.JMenu menuParametrosSistema;
    private javax.swing.JMenuItem menuParametrosSistemaItemEmpresa;
    private javax.swing.JMenuItem menuParametrosSistemaItemUsuario;
    private javax.swing.JMenuItem menuServicoAvaliacao;
    // End of variables declaration//GEN-END:variables

}
